package com.atguigu.gmall.product;

import com.atguigu.gmall.common.config.minio.annotation.EnableMinio;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @ClassName ProductApplication
 * @Description 此类描述:
 * @Author dangchen
 * @DateTime 2022-10-29 22:36
 * @Version 1.0
 * springBoot启动类只扫描主配置类所在的包及其子包 下的组件
 * 当前: com/atguigu/gmall/product
 * 抽取: com/atguigu/gmall/common/config/minio
 */
//@ComponentScan({"com.atguigu.gmall.product","com.atguigu.gmall.common.config"})
//@Import({AppMinioConfiguration.class, AppMinioPrpperties.class})抽取成注解
@EnableMinio
@EnableTransactionManagement
@SpringCloudApplication
@MapperScan(basePackages = "com.atguigu.gmall.product.mapper")
public class ProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class,args);
    }
}
